﻿using System;
using ZLWeb.WebApiEntityBase;

namespace DapperWrapper
{
    public enum ExceptionType
    {
        Sql,
        Pipe
    }
    public class SpException : System.Exception
    {
        public SpException(string msg, System.Exception _exeException, ErrorModel _errormodel=null, ExceptionType _type= ExceptionType.Pipe)
            : base(msg)
        {
            exeException = _exeException;
            errormodel = _errormodel;
            Exceptiontype = _type;
        }

        public System.Exception exeException { get; set; }
        public ErrorModel errormodel { get; set; }
        public ExceptionType Exceptiontype { get; set; }
    }
}